﻿<Application 
    x:Class="nRoute.Samples.SquareAway.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:phoneNavigation="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:nRoute="clr-namespace:nRoute.ApplicationServices;assembly=nRoute.Framework"
    xmlns:nSiteMaps="clr-namespace:nRoute.SiteMaps;assembly=nRoute.Framework"
    xmlns:local="clr-namespace:nRoute.Samples.SquareAway">
    
    <Application.ApplicationLifetimeObjects>

        <shell:PhoneApplicationService  Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated" />

            <!-- BOOTSTRAP nRoute -->
        <nRoute:nRouteApplicationService>
            <!--<nRoute:nRouteApplicationService.SiteMapProvider>

                <nSiteMaps:XamlSiteMapProvider>
                    <nSiteMaps:XamlSiteMapProvider.SiteMap>
                        <nSiteMaps:SiteMap>
                            <nSiteMaps:SiteMap.RootNode>
                                <nSiteMaps:NavigationNode>
                                    <nSiteMaps:NodesCollection>
                                        <nSiteMaps:NavigationNode Title="Page A" Url="Pages/PageA/" />
                                        <nSiteMaps:NavigationNode Title="Page B" Url="Pages/PageB/" />
                                        <nSiteMaps:NavigationNode Title="Page C" Url="Pages/PageC/" />
                                        <nSiteMaps:NavigationNode Title="Page D" Url="Pages/PageD/" />
                                    </nSiteMaps:NodesCollection>
                                </nSiteMaps:NavigationNode>
                            </nSiteMaps:SiteMap.RootNode>
                        </nSiteMaps:SiteMap>
                    </nSiteMaps:XamlSiteMapProvider.SiteMap>
                </nSiteMaps:XamlSiteMapProvider>

            </nRoute:nRouteApplicationService.SiteMapProvider>-->
        </nRoute:nRouteApplicationService>
        
        <!--Required object that handles lifetime events for the application
        <shell:PhoneApplicationService/>-->

    </Application.ApplicationLifetimeObjects>

    <!--RootFrame points to and loads the first page of your application
    <Application.RootVisual>
        <phoneNavigation:PhoneApplicationFrame x:Name="RootFrame" Source="/MainPage.xaml" />        
    </Application.RootVisual>-->

</Application>